package com.zuowei.ycy.user.ui.mine.balance;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;

import com.zuowei.ycy.R;
import com.zuowei.ycy.ui.BaseToolbarAty;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * Created by Administrator on 2016/4/26.
 */
public class RechargeOneAty extends BaseToolbarAty {
    @Bind(R.id.edit_money)
    EditText editMoney;

    @Override
    public int getLayoutId() {
        return R.layout.recharge_one_aty;
    }

    @Override
    public void initData() {
        mToolbar.setTitle("充值");

    }

    @Override
    public void requestData() {

    }

    @OnClick(R.id.fbtn_next)
    @Override
    public void btnClick(View view) {
        super.btnClick(view);

        String money = editMoney.getText().toString();
        if (TextUtils.isEmpty(money)){
            showToast("请先输入充值金额");
            return;
        }

        Bundle bundle =new Bundle();
        bundle.putString("money",money);
        startActivity(RechargePayAty.class, bundle);
    }
}
